import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		socketState:1 //1 已连接  2已断开
	},
	getters: {

	},
	mutations:{
		changeSocketSta: (state, data) => {
			state.socketState = data;
		},
	}
})

export default store
